package nuc.lizongze.backend.service.impl;

import nuc.lizongze.backend.feign.CommonItemFeignClient;
import nuc.lizongze.backend.service.ItemParamService;
import nuc.lizongze.pojo.TbItemParam;
import nuc.lizongze.utils.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ItemParamServiceImpl implements ItemParamService {

    @Autowired
    CommonItemFeignClient commonItemFeignClient;
    @Override
    public Result selectItemParamByItemCatId(Long itemCatId) {
        TbItemParam tbItemParam = commonItemFeignClient.selectItemParamByItemCatId(itemCatId);
        if (tbItemParam != null){
            return Result.ok(tbItemParam);
        }
        return Result.error("没有找到");
    }
}
